<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style>
		* {
			margin: 0;
			padding: 0;
		}

		.container {
			height: 100vh;
			display: flex;
			flex-direction: column;
		}

		.first {
			flex-grow: 2;
			background-color: blue;
		}

		.content {
			display: flex;
			flex-grow: 5;
		}

		.second {
			flex-grow: 1;
			background-color: green;
		}

		.third {
			flex-grow: 5;
			background-color: pink;
		}

		.four {
			flex-grow: 1;
			background-color: orange;
		}
	</style>
</head>
<body>
	<div class="container">
		<div class="box first">1</div>
		<div class="content">
			<div class="box second">2.1</div>
			<div class="box third">2.2</div>
		</div>
		<div class="box four">3</div>
	</div>
</body>
</html>